package com.eaoa.query.bus;

import com.eaoa.base.EABaseQuery;
import com.eaoa.vo.bus.BusRoute;

public class BusRouteQuery extends EABaseQuery{
	public BusRouteQuery() {
		super(BusRoute.class);
	}
	
	public void setRouteno(Long val){
		setEQCondition("routeno", val);
	}
	
	public void setRoutename(String val){
		setLIKECondition("routename", val);
	}
	
	public void setRemark(String val){
		setLIKECondition("remark", val);
	}
	
	public void setIslock(String val){
		setEQCondition("islock", val);
	}
	
	
	
	public static BusRoute loadByNO(Long val){
		BusRouteQuery query = new BusRouteQuery();
		query.setRouteno(val);
		query.execute();
		if(query.getResults().size()!=1){
			return null;
		}
		return (BusRoute)query.getResults().get(0);
	}
}